package com.lanju.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/**
 * 预约看房表
 * @author linjp
 * @CrateTime 2018102
 */
@Entity
@Table(name="lj_appointment")
public class Appointment implements Serializable{
	private static final long serialVersionUID = 2367346290820717260L;
	
	private String appointmentId;	//主键
	private String houseId;			//房子id
	private String userId;			//用户id
	private String nickName;		//昵称
	private String sex;				//性别
	private String phone;			//预约预留的手机号码
	private String appointmentTime;	//预约看房时间
	private String userRemark;		//预约人备注
	private String type;			//预约类型  	1:租客预约看房  2:房东预约管家来看房  
	private String handlerId;		//预约单处理人id (管家id)
	private String status;			//预约单状态  1:待联系   2:已联系,处理中   3:已完成
	private String handlerRemark;	//处理人备注 ( 看完房后备注此次看房情况, 满意、不满意、有意租、需要看别的房等  )
	private String creator;			//创建人
	private Date createTime;
	private String updator;
	private Date updateTime;
	
	@Id
	@Column(name = "appointmentId", unique = true, nullable = false)
	//@GeneratedValue(strategy=GenerationType.IDENTITY)
	public String getAppointmentId() {
		return appointmentId;
	}
	public void setAppointmentId(String appointmentId) {
		this.appointmentId = appointmentId;
	}
	public String getHouseId() {
		return houseId;
	}
	public void setHouseId(String houseId) {
		this.houseId = houseId;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getAppointmentTime() {
		return appointmentTime;
	}
	public void setAppointmentTime(String appointmentTime) {
		this.appointmentTime = appointmentTime;
	}
	public String getUserRemark() {
		return userRemark;
	}
	public void setUserRemark(String userRemark) {
		this.userRemark = userRemark;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getHandlerId() {
		return handlerId;
	}
	public void setHandlerId(String handlerId) {
		this.handlerId = handlerId;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getHandlerRemark() {
		return handlerRemark;
	}
	public void setHandlerRemark(String handlerRemark) {
		this.handlerRemark = handlerRemark;
	}
	public String getCreator() {
		return creator;
	}
	public void setCreator(String creator) {
		this.creator = creator;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getUpdator() {
		return updator;
	}
	public void setUpdator(String updator) {
		this.updator = updator;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public String getNickName() {
		return nickName;
	}
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}

	
	
}
